#include <iostream>
using namespace std;
int main() {
    int a[5] = {0, 1, 2, 3, 4};
    int b[5] = {5, 6, 7, 8, 9};
    int i = 0;
    while(i < 5){
        b[a[i++]]++;
        cout << "i: " << i << endl; 
        for(int k=0;k<5;k++) cout << b[k] << ", ";
        cout << endl;
    }


    return 0;
}